# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def user_to_url (user)
    url = url_for :controller=>"account", :action=>"view", :id=>user
    link = link_to user.login, url, :title=>user.full_name
  end

  def user_to_url_with_email (user)
    url = url_for :controller=>"account", :action=>"view", :id=>user
    link = link_to user.login, url, :title=>user.full_name
    mail = mail_to user.email, $mail_img
    link+"&nbsp;&nbsp;"+mail
  end
end

